package com.example.happy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@ToString
@TableName("t_account")
public class Account implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @JsonFormat(pattern = "yyyy-MM-dd", locale = "zh", timezone = "GMT+8") //时间格式化处理
    private Date createTime;//记账时间

    private Integer accountType;//账目类型（1：收入；2：支出）

    private String accountDesc;//账目描述

    private BigDecimal accountMoney;//记账金额

}
